// @ts-ignore
/* eslint-disable */
import { defHttp } from '@/lib/http';

// 登录
export const login = (data: USER.loginParams) =>
  defHttp.post<USER.loginResult>('/system/auth/login', data);

// 获取用户信息
export const getUserInfo = () => defHttp.get<USER.userinfo>('/system/auth/get-permission-info');

// 获取用户信息
export const getMenu = () => defHttp.get<USER.menu[]>('/system/auth/list-menus');

// 获取数据字典
export const getSimpleList = () =>
  defHttp.get<USER.dictionary[]>('/system/dict-data/list-all-simple');
